package org.apache.dolphinscheduler.dao.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/**
 * <p>
 * 收支明细表
 * </p>
 *
 * @author denggh
 * @since 2023-08-14
 */
@TableName("t_ds_couponbill")
public class Couponbill implements Serializable {

    private static final long serialVersionUID = 4L;


    /**
     * id
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 算力券编码
     */
    private String couponNo;

    /**
     * 算力券名称
     */
    private String couponName;

    /**
     * 算力券detail id
     */
    private Integer coupondetailId;

    /**
     * 领取时间
     */
    private Date claimTime;

    /**
     * 算力券状态
     */
    private String couponState;

    /**
     * 使用时间
     */
    private Date useTime;

    /**
     * 过期时间
     */

    private Date endTime;

    /**
     * 订单编号
     */
    private String billNo;

    /**
     * 使用账号
     */
    private String useAccount;

    /**
     * 发放人
     */
    private String Issuer;

    /**
     * 应付金额
     */
    private BigDecimal paymentValue;

    /**
     * 实付金额
     */
    private BigDecimal payableValue;

    public Integer getCoupondetailId() {
        return coupondetailId;
    }

    public void setCoupondetailId(Integer coupondetailId) {
        this.coupondetailId = coupondetailId;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getCouponNo() {
        return couponNo;
    }

    public void setCouponNo(String couponNo) {
        this.couponNo = couponNo;
    }

    public String getCouponName() {
        return couponName;
    }

    public void setCouponName(String couponName) {
        this.couponName = couponName;
    }

    public Date getClaimTime() {
        return claimTime;
    }

    public void setClaimTime(Date claimTime) {
        this.claimTime = claimTime;
    }

    public String getCouponState() {
        return couponState;
    }

    public void setCouponState(String couponState) {
        this.couponState = couponState;
    }

    public Date getUseTime() {
        return useTime;
    }

    public void setUseTime(Date useTime) {
        this.useTime = useTime;
    }

    public Date getEndTime() {
        return endTime;
    }

    public void setEndTime(Date endTime) {
        this.endTime = endTime;
    }

    public String getBillNo() {
        return billNo;
    }

    public void setBillNo(String billNo) {
        this.billNo = billNo;
    }

    public String getUseAccount() {
        return useAccount;
    }

    public void setUseAccount(String useAccount) {
        this.useAccount = useAccount;
    }

    public String getIssuer() {
        return Issuer;
    }

    public void setIssuer(String issuer) {
        Issuer = issuer;
    }

    public BigDecimal getPayableValue() {
        return payableValue;
    }

    public void setPayableValue(BigDecimal payableValue) {
        this.payableValue = payableValue;
    }

    public BigDecimal getPaymentValue() {
        return paymentValue;
    }

    public void setPaymentValue(BigDecimal paymentValue) {
        this.paymentValue = paymentValue;
    }

    @Override
    public String toString() {
        return "Couponbill{" +
                "payableValue=" + payableValue +
                ", id=" + id +
                ", couponNo='" + couponNo + '\'' +
                ", couponName='" + couponName + '\'' +
                ", claimTime=" + claimTime +
                ", couponState='" + couponState + '\'' +
                ", useTime=" + useTime +
                ", endTime=" + endTime +
                ", billNo='" + billNo + '\'' +
                ", useAccount='" + useAccount + '\'' +
                ", Issuer='" + Issuer + '\'' +
                ", paymentValue=" + paymentValue +
                ", paymentValue=" + payableValue +
                '}';
    }
}
